package net.asg.games.yokeltowers.view;

import net.asg.games.yokeltowers.images.ImageProvider;
import net.asg.games.yokeltowers.sounds.SoundManager;

import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class BlockYokelGameObject extends YokelGameObject {
	public enum BlockType {Y_BLOCK, E_BLOCK, L_BLOCK, O_BLOCK, K_BLOCK, BASH_BLOCK, CLEAR_BLOCK, STONE_BLOCK}
	public BlockType blockType;
	public BlockYokelGameObject(ImageProvider imageProvider,
			TextureRegion[] textureRegions, SoundManager soundManager,
			int width, int height, boolean isHitboxActive, BlockType blockType) {
		super(imageProvider, textureRegions, soundManager, width, height,
				isHitboxActive);
		this.blockType = blockType;
	}

	public BlockType getBlockType(){
		return this.blockType;
	}

	public String toString(){
		return "|" + this.blockType + "|";
	}

	public boolean equals(BlockYokelGameObject block){
		if(!this.blockType.equals(BlockType.CLEAR_BLOCK) && !block.blockType.equals(BlockType.CLEAR_BLOCK)){
				return this.blockType.equals(block.blockType);
		} else {
			return false;
		}
	}
}